package teeest;

import java.util.List;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import popcorn.ticket.entity.MovieComment;
import popcorn.ticket.service.MovieCommentService;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:applicationContext.xml"})
public class Comment {
	@Autowired
	private MovieCommentService mcs;
	
	@Test
	public void test01() {
		List<MovieComment> list = mcs.selCommentByUserid(8);
		System.out.println(list.size());
		for (MovieComment movieComment : list) {
			System.out.println(movieComment.getReviewid());
		}
	}
}
